home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttjjjjlllliiiimmmmiiiitttt((((2222)))) ggggeeeettttjjjjlllliiiimmmmiiiitttt((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- getjlimit, setjlimit - control a job's maximum system resource
- consumption
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh>>>>
-
- iiiinnnntttt ggggeeeettttjjjjlllliiiimmmmiiiitttt((((jjjjiiiidddd____tttt jjjjiiiidddd,,,, iiiinnnntttt rrrreeeessssoooouuuurrrrcccceeee,,,, ssssttttrrrruuuucccctttt rrrrlllliiiimmmmiiiitttt ****rrrrllllpppp))))
-
- iiiinnnntttt sssseeeettttjjjjlllliiiimmmmiiiitttt((((jjjjiiiidddd____tttt jjjjiiiidddd,,,, iiiinnnntttt rrrreeeessssoooouuuurrrrcccceeee,,,, ssssttttrrrruuuucccctttt rrrrlllliiiimmmmiiiitttt ****rrrrllllpppp))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Limits on the consumption of a variety of system resources by a job may
- be obtained with the _gggg_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt function and set by the _ssss_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt
- function.
-
- The _gggg_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt function gets the current and maximum job limits values for
- the specified job ID. If the _j_i_d value is 0, _gggg_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt returns the
- values for the current job. If the _j_i_d value is not 0, values are
- returned for the specified job. The CAP_MAC_Read capability is needed to
- retrieve values from jobs belonging to other users. The _r_e_s_o_u_r_c_e value
- is one of the _J_L_I_M_I_T values in the resource.h file. Values are returned
- in the _r_l_p structure.
-
- The _ssss_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt function sets the current and maximum job limits values for
- the specified job ID. If the current job is different from the job being
- requested, the _ssss_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt function checks for the CAP_MAC_WRITE
- capability. If the maximum (hard) limits are being raised, the _ssss_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt
- function checks for the CAP_PROC_MGT capability. See the capability(4)
- and capabilities(4) man pages for more information on the capability
- mechanism that provides fine grained control over the privileges of a
- process.
-
- The possible resources, their descriptions, and the actions taken when
- current limit is exceeded, are summarized below:
-
- JJJJLLLLIIIIMMMMIIIITTTT____CCCCPPPPUUUU The maximum amount of CPU time in seconds used by all
- processes in the job. _SSSS_IIII_GGGG_XXXX_CCCC_PPPP_UUUU is sent to any process in
- the job which exceeds this limit. If the job is holding
- or ignoring _SSSS_IIII_GGGG_XXXX_CCCC_PPPP_UUUU, the behavior is scheduling class
- defined. Unless the _SSSS_VVVV_RRRR_4444______SSSS_IIII_GGGG_NNNN_AAAA_LLLL_SSSS variable in
- _////_eeee_tttt_cccc_////_dddd_eeee_ffff_aaaa_uuuu_llll_tttt_////_llll_oooo_gggg_iiii_nnnn is set to NO, this signal will be
- ignored by default. The system administrator can set a
- grace period using the _ssss_yyyy_ssss_tttt_uuuu_nnnn_eeee(1M) command to set the
- ccccppppuuuulllliiiimmmmiiiitttt____ggggrrrraaaacccceeeettttiiiimmmmeeee parameter. If the grace period is
- set, each process will be allowed to continue executing
- for "grace period" seconds after the _SSSS_IIII_GGGG_XXXX_CCCC_PPPP_UUUU signal is
- received. If a process is still executing after the
- grace period has expired, it is terminated using a
- _SSSS_IIII_GGGG_KKKK_IIII_LLLL_LLLL signal.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ggggeeeettttjjjjlllliiiimmmmiiiitttt((((2222)))) ggggeeeettttjjjjlllliiiimmmmiiiitttt((((2222))))
-
-
-
- JJJJLLLLIIIIMMMMIIIITTTT____DDDDAAAATTTTAAAA The maximum size of a job's heap in bytes. A _bbbb_rrrr_kkkk(2)
- which attempts to exceed this limit will fail with errno
- set to _EEEE_NNNN_OOOO_MMMM_EEEE_MMMM.
-
- JJJJLLLLIIIIMMMMIIIITTTT____NNNNOOOOFFFFIIIILLLLEEEE The maximum number of open file descriptors that the all
- processes in the job can have. Functions that attempt
- to create new file descriptors beyond this limit will
- fail with errno set to _EEEE_MMMM_FFFF_IIII_LLLL_EEEE.
-
- JJJJLLLLIIIIMMMMIIIITTTT____NNNNUUUUMMMMPPPPRRRROOOOCCCC The maximum number of processes that can be created
- within the job. The fork function will fail with the
- eeeerrrrrrrrnnnnoooo set to _EEEE_AAAA_GGGG_AAAA_IIII_NNNN.
-
- JJJJLLLLIIIIMMMMIIIITTTT____VVVVMMMMEEEEMMMM The maximum size of all processes in the job's mapped
- address space in bytes. _bbbb_rrrr_kkkk(2) and _mmmm_mmmm_aaaa_pppp(2) functions
- which attempt to exceed this limit will fail with errno
- set to _EEEE_NNNN_OOOO_MMMM_EEEE_MMMM.
-
- JJJJLLLLIIIIMMMMIIIITTTT____PPPPMMMMEEEEMMMM The maximum amount of physical memory a job may consume.
- If a job exceeds this limit, all of the processes
- associated with the job are killed. Also see the
- _JJJJ_LLLL_IIII_MMMM_IIII_TTTT______RRRR_SSSS_SSSS limit.
-
- JJJJLLLLIIIIMMMMIIIITTTT____RRRRSSSSSSSS The maximum size, in bytes to which a job's resident set
- size may grow. This imposes a limit on the amount of
- physical memory to be given to a job; if memory is
- tight, the system will prefer to take memory from jobs
- that are exceeding their declared resident set size.
-
- The value of the current limit of the following resources affect these
- implementation defined constants:
- Limit Implementation Defined Constant
- __________________________________________
- JLIMIT_NOFILE OPEN_MAX
-
- EEEERRRRRRRROOOORRRRSSSS
- Under the following conditions, the functions _gggg_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt and _ssss_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt
- fail and set _e_r_r_n_o to:
-
- [ENOPKG] The job limits software is not installed.
-
- [ENOJOB] A job with the specified job ID cannot be found.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- jlimit(1), jstat(1), getjusage(2), getrlimit(2).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _gggg_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt and _ssss_eeee_tttt_jjjj_llll_iiii_mmmm_iiii_tttt return a value of 0.
- Otherwise, a value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the
- error.
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-